package org.ocelot.tunes4j.utils;

import java.net.URL;

import javax.swing.ImageIcon;


public class ResourceLoader {
	
	public static final ImageIcon ICON_MUSIC = getImageIcon("../icons/MBiTunesMusicPlaylist.png");
	public static final ImageIcon ICON_MOVIES = getImageIcon("../icons/MBiTunesMoviesPlaylist.png");
	public static final ImageIcon ICON_TVSHOWS = getImageIcon("../icons/MBiTunesTVShowsPlaylist.png");
	public static final ImageIcon ICON_PODCASTS = getImageIcon("../icons/MBiTunes7PodcastsPlaylist.png");
	
	public static final ImageIcon ICON_PURCHASED = getImageIcon("../icons/MBiTunes7PurchasedPlaylist.png");
	public static final ImageIcon ICON_PLAYLIST = getImageIcon("../icons/MBiTunes7Playlist.png");
	public static final ImageIcon ICON_SMARTPLAYLIST = getImageIcon("../icons/MBiTunes7SmartPlaylist.png");
	
	public static final ImageIcon ICON_ARES = getImageIcon("../icons/Ares16.png");
	public static final ImageIcon ICON_EMULE = getImageIcon("../icons/emule16.png");
	
	private static ImageIcon getImageIcon(String imgName) {
        URL imgURL = ResourceLoader.class.getResource(imgName);
        return imgURL != null ? new ImageIcon(imgURL) : null;
    }

}
